package uc;

import android.app.Application;
import android.graphics.Typeface;
import android.util.Log;
import uc.patternlock.LockPatternUtils;

public class MyApp extends Application {
	public static Typeface TEXT_TYPE ;
	
	@Override
	public void onCreate() {
		mInstance = this;
		mLockPatternUtils = new LockPatternUtils(this);
		// 加载自定义字体/OFLauncher/assets/fronts/Roboto-Thin.ttf
		try{
			TEXT_TYPE = Typeface.createFromAsset(getAssets(),"fonts/Roboto-Thin.ttf"); 
		}catch(Exception e){
			Log.i("MyApp","加载第三方字体失败。") ;
			TEXT_TYPE = null ;
		}
		super.onCreate();
	}
	private static MyApp mInstance;
	private LockPatternUtils mLockPatternUtils;

	public static MyApp getInstance() {
		return mInstance;
	}


	public LockPatternUtils getLockPatternUtils() {
		return mLockPatternUtils;
	}
}
